<?php $aPath = Yii::app()->theme->baseUrl . '/assets/'; ?>
<div class="tabs">
    <div class="owl-carousel tabs__title">
        <?php foreach ($models as $value): ?>
            <div class="item">
                <a href="#"><?php echo $value['pageTitle']; ?></a>
            </div>
        <?php endforeach; ?>		
    </div>
    <div class="customNavigation">
        <span class="btn prev">Previous</span>
        <span class="btn next">Next</span>
    </div>
    <div class="owl-carousel tabs__content">
        <?php foreach ($models as $value): ?>
            <div class="item">

                <div class="tabs__content__left-column">
                    <div class="tabs__content__left-column__inner">
                        <div class="entry">
                            <?php echo $value['pageDescription']; ?>
                            
                        </div>    
                    </div>
                </div>
                <div class="tabs__content__right-column">
                    <?php if ($value['pageId'] != 4): ?>
                        <span class="global-button green-bg indent-bottom">
                            <a href="/<?php echo $value['pageUrl']; ?>">Подробнее</a>
                        </span>
                    <?php endif; ?>
                    <?php $this->widget('application.modules.main.widgets.NewServices', array('category' => $value['pageUrl'], 'w' => true)); ?>
                    <?php $this->widget('application.modules.main.widgets.popularServices', array('category' => $value['pageUrl'])); ?>
                </div>                  
            </div>
        <?php endforeach; ?>		
    </div> 
</div>    
